#include <stdio.h>

#define MAX (sizeof(int) * 10) // 定义常量宏
int g_val = 10;

void print_array(int arr[], int size)
{
    for (int i = 0; i < size; i++)
        printf("%d ", arr[i]);
    printf("\n");
}

int my_add(int x, int y)
{
    return x + y;
}

// 假装进行了注释
int main()
{
    int max = MAX; // 局部变量
    printf("hello world\n");
    int arr[] = {1, 2, 3, 4, 5};
    int size = sizeof(arr) / sizeof(arr[0]);
    print_array(arr, size);
    printf("g_val is %d; max is %d\n", g_val, max);
    register int r_val = 20; // 寄存器变量，编译器可能会优化掉
    return 0;
}